package cn.lingyangwl.agile.msg.push.api.model.content;

import cn.lingyangwl.agile.msg.push.api.constatnts.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 消息字段 (调用方发送的消息)
 * @author shenguangyang
 */
@Getter
@Setter
public class MsgField {
    protected String key;

    /**
     * 字段值
     */
    protected Object value;

    /**
     * 字段的描述
     */
    protected String desc;

    /**
     * 变量颜色, {@link ChannelTypeEnum} 为如下生效
     * @see ChannelTypeEnum#WX_MP
     * @see ChannelTypeEnum#WX_MINI_APP
     */
    protected String color;

    public MsgField() {
    }

    public MsgField(String key, Object value, String color) {
        this.key = key;
        this.value = value;
        this.color = color;
    }
}
